Package com.cisco.pt.ipc.sim.impl
Class RouterPortImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.PortImpl
com.cisco.pt.ipc.sim.impl.HostPortImpl
com.cisco.pt.ipc.sim.impl.RouterPortImpl
- All Implemented Interfaces:
IPCObject,HostPort,Port,Process,RouterPort
- Direct Known Subclasses:
FRSubInterfaceImpl,RoutedSwitchPortImpl,VirtualTemplateInterfaceImpl
Information provided by the PKI file:
\class RouterPort
\brief RouterPort handles and manipulates the router port.
\example network().getDevice("Router0").getPort("FastEthernet0/0")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionRouterPortImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntryEigrpPassive(int as, boolean bPassive) Information provided by the PKI file:booleanaddOspfMd5Key(Short keyId, String key) Information provided by the PKI file:booleanaddSummaryAddress(Short as, IPAddress networkAddress, IPAddress mask, int adminDistance) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intgetDelay()Information provided by the PKI file:getIntOfAs(Short as) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:voidremoveEntryEigrpPassive(int as) Information provided by the PKI file:voidremoveOspfMd5Key(Short keyId) Information provided by the PKI file:booleanremoveSummaryAddress(Short as, IPAddress networkAddress, IPAddress mask, int adminDistance) Information provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:voidsetAclInID(String aclId) Information provided by the PKI file:voidsetAclOutID(String aclId) Information provided by the PKI file:voidsetBandwidthInfo(int bandwidth) Information provided by the PKI file:voidsetCdpEnable(boolean bEnable) Information provided by the PKI file:voidsetDelay(int delay) Information provided by the PKI file:voidsetIkeEnabled(boolean flag) Information provided by the PKI file:voidsetIntForAs(Short as, Short interval) Information provided by the PKI file:voidsetIpsInID(String name) Information provided by the PKI file:voidsetIpsOutID(String name) Information provided by the PKI file:voidsetNatMode(NATMode type) Information provided by the PKI file:voidsetOspfAuthKey(String key) Information provided by the PKI file:voidsetOspfCost(Short cost) Information provided by the PKI file:voidsetOspfDeadInterval(Short interval) Information provided by the PKI file:voidsetOspfHelloInterval(Short interval) Information provided by the PKI file:voidsetOspfPriority(Short usPriority) Information provided by the PKI file:voidsetProxyArpEnabled(boolean enabled) Information provided by the PKI file:voidsetRipPassive(boolean bRipPassive) Information provided by the PKI file:voidsetRipSplitHorizon(boolean bEnable) Information provided by the PKI file:voidsetZoneMemberName(String name) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.HostPortImpl
addIpv6Address, getIpAddress, getIpMtu, getIpv6Address, getIpv6Addresses, getIpv6LinkLocal, getIpv6Mtu, getIpv6Multicast, getMtu, getSubnetMask, getUnicastIpv6Address, getUnicastIpv6Prefix, hasIpv6Address, isDhcpClientOn, isInboundFirewallOn, isInboundIpv6FirewallOn, isInIpv6Multicast, isIpv6AddressAutoConfig, isIpv6Enabled, isSetToDhcpv6, removeAllIpv6Addresses, removeIpv6Address, setDefaultArpTimeout, setDefaultGateway, setDhcpClientFlag, setDnsServerIp, setInboundFirewallService, setInboundIpv6FirewallService, setIpMtu, setIpSubnetMask, setIpv6AddressAutoConfig, setIpv6Enabled, setIpv6LinkLocal, setIpv6Mtu, setMtu, setv6DefaultGateway, setv6ServerIpMethods inherited from class com.cisco.pt.ipc.sim.impl.PortImpl
deleteLink, getBandwidth, getBia, getChannel, getClockRate, getDescription, getEncapProcess, getHardwareQueue, getHigherProcessCount, getKeepAliveProcess, getLightStatus, getLink, getMacAddress, getName, getPortNameNumber, getPower, getQosQueue, getTerminalTypeShortString, getType, isAutoCross, isBandwidthAutoNegotiate, isDuplexAutoNegotiate, isEthernetPort, isFullDuplex, isPortUp, isPowerOn, isProtocolUp, isStraightPins, isWirelessPort, setBandwidth, setBandwidthAutoNegotiate, setChannel, setClockRate, setDescription, setDuplexAutoNegotiate, setFullDuplex, setMacAddress, setPowerMethods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.HostPort
addIpv6Address, getIpAddress, getIpMtu, getIpv6Address, getIpv6Addresses, getIpv6LinkLocal, getIpv6Mtu, getIpv6Multicast, getMtu, getSubnetMask, getUnicastIpv6Address, getUnicastIpv6Prefix, hasIpv6Address, isDhcpClientOn, isInboundFirewallOn, isInboundIpv6FirewallOn, isInIpv6Multicast, isIpv6AddressAutoConfig, isIpv6Enabled, isSetToDhcpv6, removeAllIpv6Addresses, removeIpv6Address, setDefaultArpTimeout, setDefaultGateway, setDhcpClientFlag, setDnsServerIp, setInboundFirewallService, setInboundIpv6FirewallService, setIpMtu, setIpSubnetMask, setIpv6AddressAutoConfig, setIpv6Enabled, setIpv6LinkLocal, setIpv6Mtu, setMtu, setv6DefaultGateway, setv6ServerIpMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Port
deleteLink, getBandwidth, getBia, getChannel, getClockRate, getDescription, getEncapProcess, getHardwareQueue, getHigherProcessCount, getKeepAliveProcess, getLightStatus, getLink, getMacAddress, getName, getPortNameNumber, getPower, getQosQueue, getTerminalTypeShortString, getType, isAutoCross, isBandwidthAutoNegotiate, isDuplexAutoNegotiate, isEthernetPort, isFullDuplex, isPortUp, isPowerOn, isProtocolUp, isStraightPins, isWirelessPort, setBandwidth, setBandwidthAutoNegotiate, setChannel, setClockRate, setDescription, setDuplexAutoNegotiate, setFullDuplex, setMacAddress, setPowerMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
RouterPortImpl
public RouterPortImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setAclInID
Information provided by the PKI file:
\brief Sets an inbound ACL. \param aclId, the ID of the ACL.- Specified by:
setAclInIDin interfaceRouterPort- Parameters:
aclId- Takes in a parameter of aclId
-
setAclOutID
Information provided by the PKI file:
\brief Sets an outbound ACL. \param aclId, the ID of the ACL.- Specified by:
setAclOutIDin interfaceRouterPort- Parameters:
aclId- Takes in a parameter of aclId
-
getAclInID
Information provided by the PKI file:
\brief Returns the inbound ACL ID. \param string, the ID of the inbound ACL.- Specified by:
getAclInIDin interfaceRouterPort- Returns:
- String Returns a String
-
getAclOutID
Information provided by the PKI file:
\brief Returns the outbound ACL ID. \param string, the ID of the outbound ACL.- Specified by:
getAclOutIDin interfaceRouterPort- Returns:
- String Returns a String
-
setNatMode
Information provided by the PKI file:
\brief Sets the NAT mode. \param type, the NAT mode. NAT modes: eNatNull = 0, eNatInside = 1, eNatOutside = 2- Specified by:
setNatModein interfaceRouterPort- Parameters:
type- Takes in a parameter of type
-
getNatMode
Information provided by the PKI file:
\brief Returns the NAT mode. \param NatMode, the NAT mode. NAT modes: eNatNull = 0, eNatInside = 1, eNatOutside = 2- Specified by:
getNatModein interfaceRouterPort- Returns:
- NATMode Returns a NATMode
-
setCdpEnable
public void setCdpEnable(boolean bEnable) Information provided by the PKI file:
\brief Enables or disables CDP. \param bEnable, true to enable CDP, false to disable it.- Specified by:
setCdpEnablein interfaceRouterPort- Parameters:
bEnable- Takes in a parameter of bEnable
-
isCdpEnable
public boolean isCdpEnable()Information provided by the PKI file:
\brief Returns true if CDP is enabled, otherwise false. \return bool, true if CDP is enabled, otherwise false.- Specified by:
isCdpEnablein interfaceRouterPort- Returns:
- boolean Returns a boolean
-
setRipPassive
public void setRipPassive(boolean bRipPassive) Information provided by the PKI file:
\brief Enables or disables RIP passive interface. \param bRipPassive, true to enable RIP passive interface, false to disable it.- Specified by:
setRipPassivein interfaceRouterPort- Parameters:
bRipPassive- Takes in a parameter of bRipPassive
-
isRipPassive
public boolean isRipPassive()Information provided by the PKI file:
\brief Returns true if RIP passive interface is enabled, otherwise false. \return bool, true if RIP passive interface is enabled, otherwise false.- Specified by:
isRipPassivein interfaceRouterPort- Returns:
- boolean Returns a boolean
-
setRipSplitHorizon
public void setRipSplitHorizon(boolean bEnable) Information provided by the PKI file:
\brief Enables or disables RIP split horizon. \param bEnable, true to enable RIP split horizon, false to disable it.- Specified by:
setRipSplitHorizonin interfaceRouterPort- Parameters:
bEnable- Takes in a parameter of bEnable
-
isRipSplitHorizon
public boolean isRipSplitHorizon()Information provided by the PKI file:
\brief Returns true if RIP split horizon is enabled, otherwise false. \return bool, true if RIP split horizon is enabled, otherwise false.- Specified by:
isRipSplitHorizonin interfaceRouterPort- Returns:
- boolean Returns a boolean
-
addEntryEigrpPassive
public void addEntryEigrpPassive(int as, boolean bPassive) Information provided by the PKI file:
\brief Enables or disables EIGRP passive interface for the specified AS. \param as, the EIGRP AS number. \param bPassive, true to enable EIGRP passive interface, false to disable it.- Specified by:
addEntryEigrpPassivein interfaceRouterPort- Parameters:
as- Takes in a parameter of asbPassive- Takes in a parameter of bPassive
-
removeEntryEigrpPassive
public void removeEntryEigrpPassive(int as) Information provided by the PKI file:
\brief Remvoes EIGRP passive interface for the specified AS. \param as, the EIGRP AS number of interest.- Specified by:
removeEntryEigrpPassivein interfaceRouterPort- Parameters:
as- Takes in a parameter of as
-
getOspfAuthType
public int getOspfAuthType()Information provided by the PKI file:
\brief Returns the OSPF authentication type. \return int, the OSPF authentication type.- Specified by:
getOspfAuthTypein interfaceRouterPort- Returns:
- int Returns a int
-
setOspfAuthKey
Information provided by the PKI file:
\brief Sets the OSPF authentication key. \param key, the OSPF authentication key.- Specified by:
setOspfAuthKeyin interfaceRouterPort- Parameters:
key- Takes in a parameter of key
-
getOspfAuthKey
Information provided by the PKI file:
\brief Returns the OSPF authentication key. \param string, the OSPF authentication key.- Specified by:
getOspfAuthKeyin interfaceRouterPort- Returns:
- String Returns a String
-
addOspfMd5Key
Information provided by the PKI file:
\brief Adds an OSPF MD5 key. \param keyId, the key ID. \param key, the key. \return bool, true if successful, otherwise false.- Specified by:
addOspfMd5Keyin interfaceRouterPort- Parameters:
keyId- Takes in a parameter of keyIdkey- Takes in a parameter of key- Returns:
- boolean Returns a boolean
-
removeOspfMd5Key
Information provided by the PKI file:
\brief Removes the specified OSPF MD5 key. \param keyId, the key ID.- Specified by:
removeOspfMd5Keyin interfaceRouterPort- Parameters:
keyId- Takes in a parameter of keyId
-
setOspfCost
Information provided by the PKI file:
\brief Sets the OSPF cost. \param cost, the cost value.- Specified by:
setOspfCostin interfaceRouterPort- Parameters:
cost- Takes in a parameter of cost
-
getOspfCost
Information provided by the PKI file:
\brief Returns the OSPF cost. \return short, the cost value.- Specified by:
getOspfCostin interfaceRouterPort- Returns:
- Short Returns a Short
-
setOspfDeadInterval
Information provided by the PKI file:
\brief Sets the OSPF dead interval. \param interval, the OSPF dead interval value.- Specified by:
setOspfDeadIntervalin interfaceRouterPort- Parameters:
interval- Takes in a parameter of interval
-
getOspfDeadInterval
Information provided by the PKI file:
\brief Returns the OSPF dead interval. \return short, the OSPF dead interval value.- Specified by:
getOspfDeadIntervalin interfaceRouterPort- Returns:
- Short Returns a Short
-
setOspfHelloInterval
Information provided by the PKI file:
\brief Sets the OSPF hello interval. \param interval, the OSPF hello interval value.- Specified by:
setOspfHelloIntervalin interfaceRouterPort- Parameters:
interval- Takes in a parameter of interval
-
getOspfHelloInterval
Information provided by the PKI file:
\brief Returns the OSPF hello interval. \return short, the OSPF hello interval value.- Specified by:
getOspfHelloIntervalin interfaceRouterPort- Returns:
- Short Returns a Short
-
setOspfPriority
Information provided by the PKI file:
\brief Sets the OSPF priority. \param usPriority, the OSPF priority value.- Specified by:
setOspfPriorityin interfaceRouterPort- Parameters:
usPriority- Takes in a parameter of usPriority
-
getOspfPriority
Information provided by the PKI file:
\brief Returns the OSPF priority. \return short, the OSPF priority value.- Specified by:
getOspfPriorityin interfaceRouterPort- Returns:
- Short Returns a Short
-
setDelay
public void setDelay(int delay) Information provided by the PKI file:
\brief Sets the delay. \param delay, the delay value.- Specified by:
setDelayin interfaceRouterPort- Parameters:
delay- Takes in a parameter of delay
-
getDelay
public int getDelay()Information provided by the PKI file:
\brief Returns the delay. \return delay, the delay value.- Specified by:
getDelayin interfaceRouterPort- Returns:
- int Returns a int
-
setBandwidthInfo
public void setBandwidthInfo(int bandwidth) Information provided by the PKI file:
\brief Sets the bandwidth. \param bandwidth, the bandwidth value.- Specified by:
setBandwidthInfoin interfaceRouterPort- Parameters:
bandwidth- Takes in a parameter of bandwidth
-
getBandwidthInfo
public int getBandwidthInfo()Information provided by the PKI file:
\brief Returns the bandwidth. \return int, the bandwidth value.- Specified by:
getBandwidthInfoin interfaceRouterPort- Returns:
- int Returns a int
-
resetBandwidth
public void resetBandwidth()Information provided by the PKI file:
\brief Resets the bandwidth.- Specified by:
resetBandwidthin interfaceRouterPort
-
resetDelay
public void resetDelay()Information provided by the PKI file:
\brief Resets the delay.- Specified by:
resetDelayin interfaceRouterPort
-
setIntForAs
Information provided by the PKI file:
\brief Sets the interval for the specified EIGRP AS. \param as, the EIGRP AS of interest. \param interval, the interval value.- Specified by:
setIntForAsin interfaceRouterPort- Parameters:
as- Takes in a parameter of asinterval- Takes in a parameter of interval
-
getIntOfAs
Information provided by the PKI file:
\brief Returns the interval for the specified EIGRP AS. \param as, the EIGRP AS of interest. \return short, the interval for the specified EIGRP AS.- Specified by:
getIntOfAsin interfaceRouterPort- Parameters:
as- Takes in a parameter of as- Returns:
- Short Returns a Short
-
addSummaryAddress
public boolean addSummaryAddress(Short as, IPAddress networkAddress, IPAddress mask, int adminDistance) Information provided by the PKI file:
\brief Adds a summary address for the specified EIGRP AS. \param as, the EIGRP AS of interest. \param networkAddress, the network address. \param mask, the network mask. \param adminDistance, the administrative distance value. \return bool, true if successful, otherwise false.- Specified by:
addSummaryAddressin interfaceRouterPort- Parameters:
as- Takes in a parameter of asnetworkAddress- Takes in a parameter of networkAddressmask- Takes in a parameter of maskadminDistance- Takes in a parameter of adminDistance- Returns:
- boolean Returns a boolean
-
removeSummaryAddress
public boolean removeSummaryAddress(Short as, IPAddress networkAddress, IPAddress mask, int adminDistance) Information provided by the PKI file:
\brief Removes the summary address for the specified EIGRP AS. \param as, the EIGRP AS of interest. \param networkAddress, the network address. \param mask, the network mask. \param adminDistance, the administrative distance value. \return bool, true if successful, otherwise false.- Specified by:
removeSummaryAddressin interfaceRouterPort- Parameters:
as- Takes in a parameter of asnetworkAddress- Takes in a parameter of networkAddressmask- Takes in a parameter of maskadminDistance- Takes in a parameter of adminDistance- Returns:
- boolean Returns a boolean
-
getZoneMemberName
Information provided by the PKI file:
\brief Returns the zone name in which this port belongs. \return string, the zone name in which this port belongs.- Specified by:
getZoneMemberNamein interfaceRouterPort- Returns:
- String Returns a String
-
setZoneMemberName
Information provided by the PKI file:
\brief Sets the zone name for this port. \param name, the zone name for this port.- Specified by:
setZoneMemberNamein interfaceRouterPort- Parameters:
name- Takes in a parameter of name
-
setIpsInID
Information provided by the PKI file:
\brief Sets the IPS as inside ID for this port. \param name, the name of the IPS.- Specified by:
setIpsInIDin interfaceRouterPort- Parameters:
name- Takes in a parameter of name
-
setIpsOutID
Information provided by the PKI file:
\brief Sets the IPS as outside ID for this port. \param name, the name of the IPS.- Specified by:
setIpsOutIDin interfaceRouterPort- Parameters:
name- Takes in a parameter of name
-
getIpsInID
Information provided by the PKI file:
\brief Returns the IPS inside ID. \return string, the name of the IPS.- Specified by:
getIpsInIDin interfaceRouterPort- Returns:
- String Returns a String
-
getIpsOutID
Information provided by the PKI file:
\brief Returns the ips outside ID. \return string, the name of the IPS.- Specified by:
getIpsOutIDin interfaceRouterPort- Returns:
- String Returns a String
-
setProxyArpEnabled
public void setProxyArpEnabled(boolean enabled) Information provided by the PKI file:
\brief Enables or disables proxy ARP. \param enabled, true to enable proxy ARP, false to disable it.- Specified by:
setProxyArpEnabledin interfaceRouterPort- Parameters:
enabled- Takes in a parameter of enabled
-
isProxyArpEnabled
public boolean isProxyArpEnabled()Information provided by the PKI file:
\brief Returns true if proxy ARP is enabled, otherwise false. \return bool, true if proxy ARP is enabled, otherwise false.- Specified by:
isProxyArpEnabledin interfaceRouterPort- Returns:
- boolean Returns a boolean
-
isIkeEnabled
public boolean isIkeEnabled()Information provided by the PKI file:
\brief Check is Ike is enabled on the port \return bool, true if it is enabled and false otherwise.- Specified by:
isIkeEnabledin interfaceRouterPort- Returns:
- boolean Returns a boolean
-
setIkeEnabled
public void setIkeEnabled(boolean flag) Information provided by the PKI file:
\brief Enable or disable Ike on the port \param flag, true to enable and false otherwise.- Specified by:
setIkeEnabledin interfaceRouterPort- Parameters:
flag- Takes in a parameter of flag
-